package com.monitor.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 消息表
 * </p>
 *
 * @author 
 * @since 2018-11-19
 */
@TableName("erp_system_message")
public class ErpSystemMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 发送方user id
     */
    private Integer sendUserId;
    /**
     * 发送方人名
     */
    private String sendUserName;
    /**
     * 接收方user id
     */
    private Integer receiveUserId;
    /**
     * 消息生成时间
     */
    private Date createDt;
    /**
     * 消息内容
     */
    private String sendContent;
    /**
     * 标识
     */
    private String sendFlag;
    /**
     * 消息类型
     */
    private String messageType;
    
    /**
     * 优先级
     */
    private String priority;

    /**
     * 所在单位
     */
    private String companys;
    
    private Integer sendCustId;
    
    private Integer receiveCustId;

    public Integer getSendCustId() {
		return sendCustId;
	}

	public void setSendCustId(Integer sendCustId) {
		this.sendCustId = sendCustId;
	}

	public Integer getReceiveCustId() {
		return receiveCustId;
	}

	public void setReceiveCustId(Integer receiveCustId) {
		this.receiveCustId = receiveCustId;
	}

	public String getPriority() {
		return priority;
	}

	public void setPriority(String priority) {
		this.priority = priority;
	}

	public String getCompanys() {
		return companys;
	}

	public void setCompanys(String companys) {
		this.companys = companys;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSendUserId() {
        return sendUserId;
    }

    public void setSendUserId(Integer sendUserId) {
        this.sendUserId = sendUserId;
    }

    public String getSendUserName() {
        return sendUserName;
    }

    public void setSendUserName(String sendUserName) {
        this.sendUserName = sendUserName;
    }

    public Integer getReceiveUserId() {
        return receiveUserId;
    }

    public void setReceiveUserId(Integer receiveUserId) {
        this.receiveUserId = receiveUserId;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public String getSendContent() {
        return sendContent;
    }

    public void setSendContent(String sendContent) {
        this.sendContent = sendContent;
    }

    public String getSendFlag() {
        return sendFlag;
    }

    public void setSendFlag(String sendFlag) {
        this.sendFlag = sendFlag;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    @Override
    public String toString() {
        return "ErpSystemMessage{" +
        ", id=" + id +
        ", sendUserId=" + sendUserId +
        ", sendUserName=" + sendUserName +
        ", receiveUserId=" + receiveUserId +
        ", createDt=" + createDt +
        ", sendContent=" + sendContent +
        ", sendFlag=" + sendFlag +
        ", messageType=" + messageType +
        "}";
    }
}
